package com.pet.web.controller.system.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;

/**
 * 用户登录对象
 *
 * @author pet
 */
@ApiModel
public class LoginBody {
    /**
     * 商户登录手机号
     */
    @ApiModelProperty(required = true, value = "商户登录手机号")
    private String mobile;

    /**
     * 用户密码
     */
    @ApiModelProperty(required = true, value = "密码")
    private String password;

    @NotBlank(message = "商户登录手机号不能为空")
    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @NotBlank(message = "密码不能为空")
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

}
